package java_thinking.unit_18_IO._18_1;

import java.io.File;

/**
 * @Desc:
 * @author: cww
 * @DateTime: 2019-05-12 19:41
 */

public class DirectoryDemo {
    public static void main(String[] args) {
        PPrint.pformat(Directory.walk(".").dirs);
        for (File file : Directory.local(".\\cache", ".*")) {
            System.out.println(file);
        }
        System.out.println("----------------");
        for (File file : Directory.walk(".", "T.*\\.java")) {
            System.out.println(file);
        }
        System.out.println("===================");
        for (File file :Directory.walk(".", ".*[Zz].*\\.class")) {
            System.out.println(file);
        }
    }
}
